package Spring5.第二章.demo2_7_策略模式.卖课;

public class PromotionActity {
    private PromotionStrategy promotionStrategy;

    public PromotionActity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    public void execute() {
        promotionStrategy.doPromotion();
    }
}
